home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 758 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.4 KB

  1. Path: chronicle.mti.sgi.com!austern
  2. From: clamage@Eng.Sun.COM (Steve Clamage)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Conforming compilers should compile STL?
  5. Date: 18 Mar 1996 09:47:11 PST
  6. Organization: Sun Microsystems Inc., Mountain View, CA
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <4ihf7e$1ef@engnews1.Eng.Sun.COM>
  9. References: <199603151701.LAA06783@frodo.pswtech.com> <Pine.A32.3.91.960315223344.90639A-100000@pluto.mscc.huji.ac.il>
  10. NNTP-Posting-Host: isolde.mti.sgi.com
  11. X-Original-Date: 17 Mar 1996 16:39:10 GMT
  12. X-Newsreader: NN version 6.5.0 #21 (NOV)
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBVAwUBMU2hrUy4NqrwXLNJAQEAAQH/bAgctXAalrjFBPHM4ZiU1uF5GuJuPUqr
  15.     0GuVpBmJa6GOtwx6rWGUHYSB6yWjSvBJeFI+OVHEQyB6TsMeg9fIZg==
  16.     =cuUU
  17. Originator: austern@isolde.mti.sgi.com
  18.  
  19. Ehud Lamm <mslamm@pluto.MSCC.huji.AC.IL> writes:
  20.  
  21. >But isn't the standard going to include an 
  22. >implementation of the STL? 
  23.  
  24. No. The standard doesn't specify implementations of anything.
  25.  
  26. >It seems to me that only specifing the interface can lead to unexpected 
  27. >problems. 
  28.  
  29. The standard also specifies semantic behavior and other requirements.
  30. Implementions may differ in various ways so long as they meet the
  31. requirements that are in the standard. The standard tells you what
  32. behavior you can depend on in portable code.
  33.  
  34. >As far as I know other parts of the standard library are descirbed with 
  35. >the implementation. Or is the implementation I see in magazines just the 
  36. >authors fancy?
  37.  
  38. The standard contains a few examples of partial implementations to
  39. help describe required behavior. These are clearly marked as
  40. "expository only", or as "Examples". Real implementations
  41. are not required to follow the examples as long as the interface
  42. and behavior are correct. You could ask the authors of magazine
  43. articles where their implementations originated; they did not
  44. come from the draft standard.
  45.  
  46. >One more question. If the STL is part of the proposed standard, won't 
  47. >compiler vendors HAVE to supply some implemenation of it?
  48.  
  49. Yes, in the same sense that they should comply with all parts of
  50. the standard.
  51. --
  52. Steve Clamage, stephen.clamage@eng.sun.com
  53. ---
  54. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
  55.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  56.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  57.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  58.   Comments? mailto:std-c++-request@ncar.ucar.edu 
  59. ]
  60.